package com.umakr.ax.security.model.vo;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @author gx
 * @since 2017/6/14
 */
public class UserMenuVO {
    private Long id;
    private Long roleId;
    private String name;
    private Long resParentId;
    private String icon;
    private String resType;
    private String path;
    private String roleName;
    private List<UserMenuVO> children = Lists.newArrayList();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getResParentId() {
        return resParentId;
    }

    public void setResParentId(Long resParentId) {
        this.resParentId = resParentId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getResType() {
        return resType;
    }

    public void setResType(String resType) {
        this.resType = resType;
    }

    public List<UserMenuVO> getChildren() {
        return children;
    }

    public void setChildren(List<UserMenuVO> children) {
        this.children = children;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String toString() {
        return "UserMenuVO{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", name='" + name + '\'' +
                ", resParentId=" + resParentId +
                ", icon='" + icon + '\'' +
                ", resType='" + resType + '\'' +
                ", path='" + path + '\'' +
                ", roleName='" + roleName + '\'' +
                ", children=" + children +
                '}';
    }
}
